

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Fly542">
  <meta name="keywords" content="">
  
    <meta name="description" content="linux下errno的对应数值位于&#x2F;usr&#x2F;include&#x2F;asm-generic&#x2F;errno-base.h 和&#x2F;usr&#x2F;include&#x2F;asm-generic&#x2F;errno.h 中 errno-base.h的内容如下： 12345678910111213141516171819202122232425262728293031323334353637383940#ifndef _ASM_GENER">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux中errno说明">
<meta property="og:url" content="http://fly542.cn/2021/02/22/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/01c_cpp/09Linux%E4%B8%ADerrno%E8%AF%B4%E6%98%8E/index.html">
<meta property="og:site_name" content="Fly542 技术沉淀">
<meta property="og:description" content="linux下errno的对应数值位于&#x2F;usr&#x2F;include&#x2F;asm-generic&#x2F;errno-base.h 和&#x2F;usr&#x2F;include&#x2F;asm-generic&#x2F;errno.h 中 errno-base.h的内容如下： 12345678910111213141516171819202122232425262728293031323334353637383940#ifndef _ASM_GENER">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-02-22T03:45:02.000Z">
<meta property="article:modified_time" content="2022-12-30T03:33:01.337Z">
<meta property="article:author" content="Fly542">
<meta property="article:tag" content="c++">
<meta property="article:tag" content="c">
<meta name="twitter:card" content="summary_large_image">
  
  
  <title>Linux中errno说明 - Fly542 技术沉淀</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hint.css@2/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"fly542.cn","root":"/","version":"1.8.14","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Fly542 技术沉淀</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Linux中errno说明">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-02-22 11:45" pubdate>
        2021年2月22日 中午
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      6k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      50 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Linux中errno说明</h1>
            
            <div class="markdown-body">
              <p>linux下errno的对应数值位于/usr/include/asm-generic/errno-base.h 和/usr/include/asm-generic/errno.h 中</p>
<p>errno-base.h的内容如下：</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><div class="code-wrapper"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br></pre></div></td><td class="code"><pre><code class="hljs cpp"><span class="hljs-meta">#<span class="hljs-meta-keyword">ifndef</span> _ASM_GENERIC_ERRNO_BASE_H</span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> _ASM_GENERIC_ERRNO_BASE_H</span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPERM		 1	<span class="hljs-comment">/* Operation not permitted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOENT		 2	<span class="hljs-comment">/* No such file or directory */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESRCH		 3	<span class="hljs-comment">/* No such process */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EINTR		 4	<span class="hljs-comment">/* Interrupted system call */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EIO		 5	<span class="hljs-comment">/* I/O error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENXIO		 6	<span class="hljs-comment">/* No such device or address */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	E2BIG		 7	<span class="hljs-comment">/* Argument list too long */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOEXEC		 8	<span class="hljs-comment">/* Exec format error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADF		 9	<span class="hljs-comment">/* Bad file number */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECHILD		10	<span class="hljs-comment">/* No child processes */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EAGAIN		11	<span class="hljs-comment">/* Try again */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOMEM		12	<span class="hljs-comment">/* Out of memory */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EACCES		13	<span class="hljs-comment">/* Permission denied */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EFAULT		14	<span class="hljs-comment">/* Bad address */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTBLK		15	<span class="hljs-comment">/* Block device required */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBUSY		16	<span class="hljs-comment">/* Device or resource busy */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EEXIST		17	<span class="hljs-comment">/* File exists */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EXDEV		18	<span class="hljs-comment">/* Cross-device link */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENODEV		19	<span class="hljs-comment">/* No such device */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTDIR		20	<span class="hljs-comment">/* Not a directory */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EISDIR		21	<span class="hljs-comment">/* Is a directory */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EINVAL		22	<span class="hljs-comment">/* Invalid argument */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENFILE		23	<span class="hljs-comment">/* File table overflow */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EMFILE		24	<span class="hljs-comment">/* Too many open files */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTTY		25	<span class="hljs-comment">/* Not a typewriter */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ETXTBSY		26	<span class="hljs-comment">/* Text file busy */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EFBIG		27	<span class="hljs-comment">/* File too large */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOSPC		28	<span class="hljs-comment">/* No space left on device */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESPIPE		29	<span class="hljs-comment">/* Illegal seek */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EROFS		30	<span class="hljs-comment">/* Read-only file system */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EMLINK		31	<span class="hljs-comment">/* Too many links */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPIPE		32	<span class="hljs-comment">/* Broken pipe */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDOM		33	<span class="hljs-comment">/* Math argument out of domain of func */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ERANGE		34	<span class="hljs-comment">/* Math result not representable */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">endif</span></span><br><br></code></pre></td></tr></table></figure>

<p>errno.h的内容如下：</p>
<figure class="highlight cpp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br></pre></td><td class="code"><pre><code class="hljs cpp"><span class="hljs-meta">#<span class="hljs-meta-keyword">ifndef</span> _ASM_GENERIC_ERRNO_H</span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> _ASM_GENERIC_ERRNO_H</span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">include</span> <span class="hljs-meta-string">&lt;asm-generic/errno-base.h&gt;</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDEADLK		35	<span class="hljs-comment">/* Resource deadlock would occur */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENAMETOOLONG	36	<span class="hljs-comment">/* File name too long */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOLCK		37	<span class="hljs-comment">/* No record locks available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOSYS		38	<span class="hljs-comment">/* Function not implemented */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTEMPTY	39	<span class="hljs-comment">/* Directory not empty */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELOOP		40	<span class="hljs-comment">/* Too many symbolic links encountered */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EWOULDBLOCK	EAGAIN	<span class="hljs-comment">/* Operation would block */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOMSG		42	<span class="hljs-comment">/* No message of desired type */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EIDRM		43	<span class="hljs-comment">/* Identifier removed */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECHRNG		44	<span class="hljs-comment">/* Channel number out of range */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EL2NSYNC	45	<span class="hljs-comment">/* Level 2 not synchronized */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EL3HLT		46	<span class="hljs-comment">/* Level 3 halted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EL3RST		47	<span class="hljs-comment">/* Level 3 reset */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELNRNG		48	<span class="hljs-comment">/* Link number out of range */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EUNATCH		49	<span class="hljs-comment">/* Protocol driver not attached */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOCSI		50	<span class="hljs-comment">/* No CSI structure available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EL2HLT		51	<span class="hljs-comment">/* Level 2 halted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADE		52	<span class="hljs-comment">/* Invalid exchange */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADR		53	<span class="hljs-comment">/* Invalid request descriptor */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EXFULL		54	<span class="hljs-comment">/* Exchange full */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOANO		55	<span class="hljs-comment">/* No anode */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADRQC		56	<span class="hljs-comment">/* Invalid request code */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADSLT		57	<span class="hljs-comment">/* Invalid slot */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDEADLOCK	EDEADLK</span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBFONT		59	<span class="hljs-comment">/* Bad font file format */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOSTR		60	<span class="hljs-comment">/* Device not a stream */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENODATA		61	<span class="hljs-comment">/* No data available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ETIME		62	<span class="hljs-comment">/* Timer expired */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOSR		63	<span class="hljs-comment">/* Out of streams resources */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENONET		64	<span class="hljs-comment">/* Machine is not on the network */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOPKG		65	<span class="hljs-comment">/* Package not installed */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EREMOTE		66	<span class="hljs-comment">/* Object is remote */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOLINK		67	<span class="hljs-comment">/* Link has been severed */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EADV		68	<span class="hljs-comment">/* Advertise error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESRMNT		69	<span class="hljs-comment">/* Srmount error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECOMM		70	<span class="hljs-comment">/* Communication error on send */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPROTO		71	<span class="hljs-comment">/* Protocol error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EMULTIHOP	72	<span class="hljs-comment">/* Multihop attempted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDOTDOT		73	<span class="hljs-comment">/* RFS specific error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADMSG		74	<span class="hljs-comment">/* Not a data message */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EOVERFLOW	75	<span class="hljs-comment">/* Value too large for defined data type */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTUNIQ	76	<span class="hljs-comment">/* Name not unique on network */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EBADFD		77	<span class="hljs-comment">/* File descriptor in bad state */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EREMCHG		78	<span class="hljs-comment">/* Remote address changed */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELIBACC		79	<span class="hljs-comment">/* Can not access a needed shared library */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELIBBAD		80	<span class="hljs-comment">/* Accessing a corrupted shared library */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELIBSCN		81	<span class="hljs-comment">/* .lib section in a.out corrupted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELIBMAX		82	<span class="hljs-comment">/* Attempting to link in too many shared libraries */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ELIBEXEC	83	<span class="hljs-comment">/* Cannot exec a shared library directly */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EILSEQ		84	<span class="hljs-comment">/* Illegal byte sequence */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ERESTART	85	<span class="hljs-comment">/* Interrupted system call should be restarted */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESTRPIPE	86	<span class="hljs-comment">/* Streams pipe error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EUSERS		87	<span class="hljs-comment">/* Too many users */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTSOCK	88	<span class="hljs-comment">/* Socket operation on non-socket */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDESTADDRREQ	89	<span class="hljs-comment">/* Destination address required */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EMSGSIZE	90	<span class="hljs-comment">/* Message too long */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPROTOTYPE	91	<span class="hljs-comment">/* Protocol wrong type for socket */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOPROTOOPT	92	<span class="hljs-comment">/* Protocol not available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPROTONOSUPPORT	93	<span class="hljs-comment">/* Protocol not supported */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESOCKTNOSUPPORT	94	<span class="hljs-comment">/* Socket type not supported */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EOPNOTSUPP	95	<span class="hljs-comment">/* Operation not supported on transport endpoint */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EPFNOSUPPORT	96	<span class="hljs-comment">/* Protocol family not supported */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EAFNOSUPPORT	97	<span class="hljs-comment">/* Address family not supported by protocol */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EADDRINUSE	98	<span class="hljs-comment">/* Address already in use */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EADDRNOTAVAIL	99	<span class="hljs-comment">/* Cannot assign requested address */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENETDOWN	100	<span class="hljs-comment">/* Network is down */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENETUNREACH	101	<span class="hljs-comment">/* Network is unreachable */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENETRESET	102	<span class="hljs-comment">/* Network dropped connection because of reset */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECONNABORTED	103	<span class="hljs-comment">/* Software caused connection abort */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECONNRESET	104	<span class="hljs-comment">/* Connection reset by peer */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOBUFS		105	<span class="hljs-comment">/* No buffer space available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EISCONN		106	<span class="hljs-comment">/* Transport endpoint is already connected */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTCONN	107	<span class="hljs-comment">/* Transport endpoint is not connected */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESHUTDOWN	108	<span class="hljs-comment">/* Cannot send after transport endpoint shutdown */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ETOOMANYREFS	109	<span class="hljs-comment">/* Too many references: cannot splice */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ETIMEDOUT	110	<span class="hljs-comment">/* Connection timed out */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECONNREFUSED	111	<span class="hljs-comment">/* Connection refused */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EHOSTDOWN	112	<span class="hljs-comment">/* Host is down */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EHOSTUNREACH	113	<span class="hljs-comment">/* No route to host */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EALREADY	114	<span class="hljs-comment">/* Operation already in progress */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EINPROGRESS	115	<span class="hljs-comment">/* Operation now in progress */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ESTALE		116	<span class="hljs-comment">/* Stale file handle */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EUCLEAN		117	<span class="hljs-comment">/* Structure needs cleaning */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTNAM		118	<span class="hljs-comment">/* Not a XENIX named type file */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENAVAIL		119	<span class="hljs-comment">/* No XENIX semaphores available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EISNAM		120	<span class="hljs-comment">/* Is a named type file */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EREMOTEIO	121	<span class="hljs-comment">/* Remote I/O error */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EDQUOT		122	<span class="hljs-comment">/* Quota exceeded */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOMEDIUM	123	<span class="hljs-comment">/* No medium found */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EMEDIUMTYPE	124	<span class="hljs-comment">/* Wrong medium type */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ECANCELED	125	<span class="hljs-comment">/* Operation Canceled */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOKEY		126	<span class="hljs-comment">/* Required key not available */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EKEYEXPIRED	127	<span class="hljs-comment">/* Key has expired */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EKEYREVOKED	128	<span class="hljs-comment">/* Key has been revoked */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EKEYREJECTED	129	<span class="hljs-comment">/* Key was rejected by service */</span></span><br><br><span class="hljs-comment">/* for robust mutexes */</span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	EOWNERDEAD	130	<span class="hljs-comment">/* Owner died */</span></span><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span>	ENOTRECOVERABLE	131	<span class="hljs-comment">/* State not recoverable */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> ERFKILL		132	<span class="hljs-comment">/* Operation not possible due to RF-kill */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> EHWPOISON	133	<span class="hljs-comment">/* Memory page has hardware error */</span></span><br><br><span class="hljs-meta">#<span class="hljs-meta-keyword">endif</span></span><br><br></code></pre></td></tr></table></figure>
            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/">软件开发</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/c/">c++</a>
                    
                      <a class="hover-with-bg" href="/tags/c/">c</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2021/02/24/04DevOps/11makefile%E5%8F%8A%E7%BC%96%E8%AF%91%E7%9B%B8%E5%85%B3%E7%9F%A5%E8%AF%86%E6%B1%87%E6%80%BB/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">makefile及编译相关知识汇总</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2021/01/13/03%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91/01c_cpp/08%E5%90%84%E7%B1%BBconst%E6%8C%87%E9%92%88%E7%9A%84%E5%8C%BA%E5%88%AB/">
                        <span class="hidden-mobile">const char*, char const*, char*const 的区别</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
